<script src="js/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
   $(document).ready( function () {
       alert('ready');
       $.ajax({
          type: "POST",
/*          dataType: "json",
          contentType: "application/json", */
          url: 'http://localhost:9199/task/variants',
          data: {letter: 'a'},
          success: function( data ){
              alert('done');
              $("#variants").empty().append(data);
          }
       });
   });
</script>
<div id="variants">
    hello world
</div>
